import provider from "@/views/print/printtemplate/ProviderData";
import {hiprint} from 'vue-plugin-hiprint'

/**
 * hiprint初始化
 */
export const hiprintMixin = {
  data() {
    return {
      hiprintTemplate: null,
    };
  },
  mounted() {
    hiprint.init({
      providers: [provider],
    });
    this.hiprintTemplate = new hiprint.PrintTemplate();
  },
};
